﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NewPurchase.aspx.cs" Inherits="Eis51.Web.Admin.ProductsManager.NewPurchase" %>
<%@ Import namespace="System.ComponentModel"%>
<%@ Register TagPrefix="uc1" TagName="UCProductType" Src="../UserControls/UCProductType.ascx" %>
<%@ Register TagPrefix="cc1" Namespace="COM.ZTE.TPG.App.UI.WebForm" Assembly="COM.ZTE.TPG.App.UI.WebForm" %>
<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>NewProduct</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<LINK href="../../css/cssCn1.css" type="text/css" rel="stylesheet">
		<script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
		<script language="javascript">        
        function check(control)
        {
            var check;
            if (document.getElementById(control).value == "0") {
                alert("请选择产品");
                document.getElementById(control).focus();
                return false;
            
            }
           if ($('#txtProductName').val() == '') {
               alert("购买信息标题不能为空！");
               document.getElementById('txtProductName').focus();
               return false;
           }  
           
          return true;
        }
        function voidNum(argValue) {
            var flag1 = false;
            var compStr = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";
            var length2 = argValue.length;
            for (var iIndex = 0; iIndex < length2; iIndex++) {
                var temp1 = compStr.indexOf(argValue.charAt(iIndex));
                if (temp1 == -1) {
                    flag1 = false;
                    break;
                }
                else
                { flag1 = true; }
            }
            return flag1;
        }


        function setRadio(nowRadio) {
            var myForm, objRadio;
            myForm = document.getElementsByTagName("input");
            for (var i = 0; i < myForm.length; i++) {
                objRadio = myForm[i];
                if (objRadio.type == "radio") {
                    if (objRadio.id != nowRadio.id
                                            && objRadio.id.indexOf("dgNews") != -1
                                            && objRadio.id.indexOf("selTemplate") != -1) {

                        if (objRadio.checked) {
                            objRadio.checked = false;
                        }
                    }
                }
            }
        }

        function checkImg() {
//            if (GetPictCount() == 0) {
//                alert("请上传购买信息图片");
//                return false;
//            }
            return true;

        }

        function GetPictCount() {
            var res = 0;          
            res = parseInt($('#txtPicCount').val());            
            return res;
        }
        
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" id="thebody">
		<form id="Form1" method="post" runat="server">
			<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr>
					<td>
						<div class="div_subtitle">当前位置：购买信息管理<span class="arrow_subtitle">&gt;</span>发布购买信息</div>
					</td>
				</tr>
			</table>
			<TABLE id="tb_content" cellSpacing="0" cellPadding="0">
				<TBODY>
					<tr>
						<td>
							<TABLE id="tb_content" cellSpacing="0" cellPadding="0">
								<tr>
									<td>
										<TABLE class="tb_input" id="queryPane" cellSpacing="1" cellPadding="0" width="100%" align="center"
											bgColor="#ffffff" border="0">
											<TBODY>
												<tr>
													<td colSpan="4"><IMG src="../../Img/showtoc.gif"> 购买信息信息 
													</td>
												</tr>
												<TR>
													<TD class="td_title" width="15%"><FONT face="宋体">产品</FONT></TD>
													<TD >
														<asp:DropDownList id="drList" runat="server" Width="142px"></asp:DropDownList></TD>
													<TD class="td_title" width="15%">显示顺序</TD>
													<TD>
                                                        <asp:TextBox ID="txtShowIdx" runat="server" Text="0" Width="50px"></asp:TextBox>值大的排在前面
                                                    </TD>
												</TR>
												<TR>
													<TD class="td_title" width="15%">购买信息标题</TD>
													<TD ><asp:textbox id="txtProductName" runat="server" 
                                                            Width="200px"></asp:textbox></TD>
													<TD class="td_title" width="15%"><FONT face="宋体">首页显示</FONT></TD>
													<TD><FONT face="宋体">
															<asp:CheckBox id="chkFirst" runat="server" Text=" "></asp:CheckBox></FONT></TD>
												</TR>
												<TR>
													<TD class="td_title" width="15%">简单描述</TD>
													<TD >
														<asp:textbox id="txtCode" runat="server" Width="200px" Height="48px" TextMode="MultiLine"></asp:textbox></TD>
													<TD class="td_title" width="15%">关键字</TD>
													<TD>
														<asp:textbox id="txtKeyWord" runat="server" Width="331px"></asp:textbox></TD>
												</TR>												
												<TR id="trRemarkCn_Edit" runat="server">
													<TD class="td_title" width="15%">购买信息描述</TD>
													<TD  colspan="3">
														<FCKeditorV2:FCKeditor ID="txtProductDescr" runat="server" Height="600px">
                                                        </FCKeditorV2:FCKeditor>
													</TD>
												</TR>
											</TBODY>
										</TABLE>
									</td>
								</tr>
							</TABLE>
							<table width="100%">
								<tr>
									<td align="right" width="100%"><asp:button id="btnSave"  OnClientClick="return check('drList');" runat="server" 
                                            CssClass="Button" Text="保存" onclick="btnSave_Click"></asp:button><asp:button id="btnReturn" runat="server" CssClass="Button" Text="返回" onclick="btnReturn_Click"></asp:button></td>
								</tr>
							</table>
						</td>
					</tr>
				</TBODY>
			</TABLE>
		</form>
		</TD></TR></TBODY></TABLE>
	</body>
</HTML>
